<h2>Overzicht relaties</h2>

<p><a href="<?=APPLICATION_STARTURL?>/letter/new">Nieuwe Brief</a></p>
<table cellpadding="2" border="1" bordercolor="silver" cellspacing="0" class="edit-table">
	<tr>
		<th>Onderwerp brief</th>
		<th>Datum brief</th>
		<th>Acties</th>
	</tr>
	<? if (empty($this->letters)) :?>
		<tr>
			<td colspan="3">Geen brieven gevonden</td>
	<? else :?>
		<? foreach($this->letters as $letter) : ?>
		<tr>
			<td><?= $letter->letter_subject ?>&nbsp;</td>
			<td><?= $letter->letter_date ?></td>
			<td><a href="<?=APPLICATION_STARTURL?>/letter/edit/letter_id/<?=$letter->letter_id?>">bewerk</a>&nbsp;</td>
		</tr>
		<? endforeach;?>
	<? endif;?>
</table>

